package com.nefu.editor.service;

import com.nefu.editor.common.EdiException;
import com.nefu.editor.core.model.Article;
import com.nefu.editor.core.model.User;
import com.nefu.editor.core.model.Vo.ArticleVo;

import java.util.List;
import java.util.Map;

/**
 * @author chenchenT
 * @date : 18-11-14
 * @since : java 8
 */
public interface ArticleService {

    /**
     * 根据关键词获取文章列表
     *
     * @param articleVo
     * @return List<Article>
     */
    List<Map<String, Object>> getArticleListByKeyWord(ArticleVo articleVo) throws EdiException;

    /**
     * 根据文章systemId获取文章详情
     *
     * @param article
     * @return Article
     */
    Map<String, Object> getArticleDetailByArticleSystemId(Article article) throws EdiException;

    /**
     * 根据WriterId获取文章
     *
     * @param user
     * @return Article
     * @throws EdiException
     */
    List<Map<String, Object>> getArticleByWriterId(User user) throws EdiException;

}
